{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<style>
	.cl{width:120%;overflow: hidden;}
	.form-label{padding-left:0;padding-right:0;}
	.formControls{padding-left:0;}
	.cl .form-label{width:84px;}
	.radius:hover{
 	background:#66b1ff;
 	border-color: #66b1ff;
 	color: #fff;
 }
 span:hover{
 	color: #333;
 }
  .btn-primary {
    color: #fff;
    background-color: #409eff;
    border-color: #409eff;
    height: 31px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 24px !important;
}
</style>
<div class="page-container">
	<div class="HuiTab" style="overflow: auto; ">
		<form action="{if(1==$user_edit||3==$user_edit)}{:url('member/updateBaseInfo')}?user={$user}{else/}{:url('member/updateExtInfo')}?user={$user}{/if}" enctype="multipart/form-data" method="post">
			<div style="width:1200px;height:400px;">
			<div class="" style="display: block;float:left;width:50%;">
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员账号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" value="{$f.username}" disabled="disabled" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员关联的唯一凭证，禁止修改</strong>
					</div>
				</div>
				<div class="row cl"  style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="password" {if(2==$user_edit||0==$user_edit)}disabled{/if} name="xg_password" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;留空为不修改</strong>
					</div>
				</div>
				<div class="row cl"  style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						资金密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="password" {if(2==$user_edit||0==$user_edit)}disabled{/if} name="xg_ejmm" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;留空为不修改</strong>
					</div>
				</div>
				<!-- 		<div class="row cl" style="margin:10px 0px;">
							<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
								推荐人/代理：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input style="width:150px;" type="text" value="{$f.tjr}" name="xg_tjr" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;修改会员代理，会员之前的数据将不会转移</strong>
							</div>
						</div> -->
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员等级：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<select disabled="disabled" style="width:160px; height:25px; font-size:14px">
							{volist name="us" id="it"}
							<option value="{$it.id}" {$f.us_class==$it.id?'selected':''}>{$it.class_name}</option>
							{/volist}
						</select><strong style="color:#999999">&nbsp;&nbsp;会员等级无法修改</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						账号余额：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" value="{$f.je}" class="input-text" disabled="disabled"><strong style="color:#999999">&nbsp;&nbsp;会员账号可用余额，不可修改</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						剩余打码量：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" value="{$f.dml}" {if(1==$user_edit||0==$user_edit)}disabled{/if} name="xg_dml" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员剩余打码量不能小于0</strong>
					</div>
				</div>

				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						银行名称：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<select {if(2==$user_edit||0==$user_edit)}disabled{/if} name="xg_bankname" style="width:160px; height:25px; font-size:14px">
							<option value="0" {$f.bankname=='0'?'selected':''}>未设置银行</option>
							{volist name="bank" id="t"}
							<option value="{$t.id}" {$f.bankname==$t.id?'selected':''}>{$t.bankname}</option>
							{/volist}
						</select><strong style="color:#999999">&nbsp;&nbsp;修改会员银行信息</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						银行卡号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" name="xg_bankno" type="text" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.bankno}" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;修改会员银行信息</strong>
					</div>
				</div>
				<!--<div class="row cl" style="margin:10px 0px;">-->
					<!--<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">-->
						<!--开户人：</label>-->
					<!--<div class="formControls col-xs-8 col-sm-9">-->
						<!--<input style="width:150px;" type="text" value="{$f.bankren==''?'未设置开户人':$f.bankren}" name="xg_bankren" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;开户人姓名信息</strong>-->
					<!--</div>-->
				<!--</div>-->
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						银行所在省：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.banksf==''?'未设置银行所在省':$f.banksf}" name="xg_banksf" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员银行信息</strong></strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						银行所在市：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.banksq==''?'未设置银行所在市':$f.banksq}" name="xg_banksq" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员银行信息</strong>

					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						开户行：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.bank_zhihang==''?'未设置开户行':$f.bank_zhihang}" name="xg_bank_zhihang" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员银行信息</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						开户人：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" disabled type="text" value="{$f.bankren==''?'未设置开户人':$f.bankren}" name="xg_bankren" class="input-text">
						<strong style="color:#999999">&nbsp;&nbsp;开户人姓名信息</strong>
						<a style="display:inline-block;color: #fff;background-color: #409eff;border-color: #409eff;height:35px; border-radius: 5px;" class="btn btn-primary" href="javascript:fav_alert('修改开户人姓名','{:url('member/xiugainame')}?user={$f.username}');">修改开户人姓名</a>
					</div>
				</div>
				
			</div>
			<!------------------------------------------------------------------>
			<div class="" style="float:left;width:50%;">
				
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						代理推荐码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<div class="formControls col-xs-8 col-sm-9">{$f.tjm}
					</div>
					</div>
				</div>
				<!--<div class="row cl" style="margin:10px 0px;">-->
					<!--<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">-->
						<!--代理返点：</label>-->
					<!--<div class="formControls col-xs-8 col-sm-9">-->
						<!--<input style="width:150px;" type="text" value="{$f.fandian==''?'0':$f.fandian}" name="xg_fandian" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;代理返点</strong>-->
					<!--</div>-->
				<!--</div>-->
				

				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员手机：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" name="xg_mobile" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.mobile==''?'未设置': substr($f['mobile'],0,3).'****'.substr($f['mobile'],-4)}" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员手机号码</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员QQ：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width:150px;" type="text" name="xg_qq" {if(2==$user_edit||0==$user_edit)}disabled{/if} value="{$f.qq==''?'未设置':substr($f['qq'],0,1).'****'.substr($f['qq'],-2)}" class="input-text"><strong style="color:#999999">&nbsp;&nbsp;会员QQ号码</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						注册方式：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<select {if(2==$user_edit||0==$user_edit)}disabled{/if} name="xg_khd" style="width:160px; height:25px; font-size:14px">
							<option value="0" {$f.khd==0?'selected':''}>未设置</option>
							<option value="1" {$f.khd==1?'selected':''}>电脑端</option>
							<option value="2" {$f.khd==2?'selected':''}>手机网页端</option>
							<option value="3" {$f.khd==3?'selected':''}>Android</option>
							<option value="4" {$f.khd==4?'selected':''}>IOS</option>
						</select><strong style="color:#999999">&nbsp;&nbsp;注册来源</strong>
					</div>
				</div>
			
				<div class="row cl"  style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						会员密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<label>
							<span>正常</span>
							<input {if(1==$user_edit||0==$user_edit)}disabled{/if} type="radio"  value="0" {$f.open=='0'?'checked':''} name="xg_open">
						</label>
						<label>
							<span>冻结</span>
							<input {if(1==$user_edit||0==$user_edit)}disabled{/if} type="radio" value="1" {$f.open=='1'?'checked':''} name="xg_open">
						</label>
						<strong style="color:#999999">&nbsp;&nbsp;&nbsp;&nbsp;冻结后会员将不能进行登录等一切操作</strong>
					</div>
				</div>
				<div class="row cl"  style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						提现功能：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<label>
							<span>正常</span>
							<input type="radio" {if(1==$user_edit||0==$user_edit)}disabled{/if}  value="0" {$f.tixian_open=='0'?'checked':''} name="xg_tixian_open">
						</label>
						<label>
							<span>冻结</span>
							<input type="radio" {if(1==$user_edit||0==$user_edit)}disabled{/if} value="1" {$f.tixian_open=='1'?'checked':''} name="xg_tixian_open">
						</label>
						<strong style="color:#999999">&nbsp;&nbsp;&nbsp;&nbsp;关闭后会员将不能进行提现操作</strong>
					</div>
				</div>
				<div class="row cl"  style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;">
						投注功能：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<label>
							<span>正常</span>
							<input {if(1==$user_edit||0==$user_edit)}disabled{/if} type="radio"  value="0" {$f.touzhu_open=='0'?'checked':''} name="xg_touzhu_open">
						</label>
						<label>
							<span>冻结</span>
							<input {if(1==$user_edit||0==$user_edit)}disabled{/if} type="radio" value="1" {$f.touzhu_open=='1'?'checked':''} name="xg_touzhu_open" >
						</label>
						<strong style="color:#999999">&nbsp;&nbsp;&nbsp;&nbsp;关闭后会员将不能进行投注操作</strong>
					</div>
				</div>
				<div class="row cl" style="margin:10px 0px;">
					<label class="form-label col-xs-2 col-sm-2" style="margin-left:40px;"> 会员备注：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea style="width:300px;" rows="2" {if(2==$user_edit||0==$user_edit)}disabled{/if}  name="xg_beizhu">{$f.beizhu==''?' ':$f.beizhu}</textarea><strong style="color:#999999">&nbsp;&nbsp;备注信息</strong>
					</div>
				</div>
				
				</div>
				</div>
				<div class="am-margin" style="margin-top:130px;width:1200px;margin-bottom:20px;">
					{if( 0!=$user_edit)}
						
						<button type="submit" style="margin-left:170px;" class="btn btn-danger radius">提交保存</button>
					{/if}
					<a href="javascript:;" onClick="layer_close();" style="margin-left:30px;"  class="btn btn-primary radius">关闭</a>
				</div>
			
		</form>
	</div>
</div>
<script type="text/javascript">
function fav_alert(title,url){
		var index = layer.open({
			type: 2,
			title: title,
			area: ['50%', '50%'],
			content: url
		});
	}
function layer_close(){
	var index=parent.layer.getFrameIndex(window.name);
		                    
		parent.layer.close(index);
}
</script>
{/block} 

